package xinxin.com.MediatorPatternBasic.Colleague.Detail;

import xinxin.com.MediatorPatternBasic.Colleague.AbstractColleague;
import xinxin.com.MediatorPatternBasic.Mediator.AbstractMediator;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/1 20:57
 */
public class ConcreteColleague1 extends AbstractColleague {
    public ConcreteColleague1(AbstractMediator mediator) {
        super(mediator);
    }

    public void send(String message) {
        mediator.send(message, this);
    }

    public void notify(String message) {
        System.out.println("同事1得到信息：" + message);
    }
}
